﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Models
{
    public class SysAction:BaseModel
    {
        [Required]
        [StringLength(20)]
        public string Title { get; set; }
        public int ParentId { get; set; }
        [StringLength(20)]
        public string ControllerName { get; set; }
        [StringLength(20)]
        public string ActionName { get; set; }
        [StringLength(20)]
        public string Method { get; set; }
        [StringLength(50)]
        public string Url { get; set; }
        [StringLength(20)]
        public string Icon { get; set; }
        public bool IsMenu { get; set; }
        public virtual ICollection<SysRole> SysRoles { get; set; }

    }
}
